<?php

use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddAutoLoanApplyFlagToUserLoanRequests extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_loan_requests', function (Blueprint $table) {
            $table->tinyInteger('auto_loan_apply')->default(0)->comment('是否自动发起放款');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('user_loan_requests', function (Blueprint $table) {
            $table->dropColumn('auto_loan_apply');
        });
    }
}
